/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const componentsRouter = {
  path: '/financialStatistics',
  component: Layout,
  redirect: 'noRedirect',
  name: 'components',

  meta: {
    title: 'components',
    icon: 'component'
  },
  children: [{
    path: 'diyReportIndex',
    component: () =>
                import('@/views/financialStatistics/diyReport'),
    name: 'diyReportIndex',
    meta: {
      title: 'diyReportIndex'
    },
    redirect: '/financialStatistics/diyReport/diyReport',
    children: [{
      path: 'diyReport',
      component: () =>
                        import('@/views/financialStatistics/diyReport/diyReportList'),
      name: 'diyReport',
      meta: {
        title: 'diyReport'
      }
    },
    {
      path: 'diyReportReal',
      component: () =>
                        import('@/views/financialStatistics/diyReport/components/diyReport'),
      hidden: true,
      name: 'diyReportReal',
      meta: {
        title: 'diyReportReal'
      }
    },
    {
      path: 'diyReportSet',
      component: () =>
                        import('@/views/financialStatistics/diyReport/diyReportField/diyReportFieldList'),
      hidden: true,
      name: 'diyReportSet',
      meta: {
        title: 'diyReportSet'
      }
    }
    ]
  },
  {
    path: 'carrier',
    component: () =>
                import('@/views/financialStatistics/carrier'),
    name: 'carrier',
    meta: {
      title: 'carrier'
    }
  },
  {
    path: 'shipper',
    component: () =>
                import('@/views/financialStatistics/shipper'),
    name: 'shipper',
    meta: {
      title: 'shipper'
    }
  },
  {
    path: 'receivable',
    component: () =>
                import('@/views/financialStatistics/receivable'),
    name: 'receivable',
    meta: {
      title: 'receivable'
    }
  },
  {
    path: 'payable',
    component: () =>
                import('@/views/financialStatistics/payable'),
    name: 'payable',
    meta: {
      title: 'payable'
    }
  },
  {
    path: 'receivedetail',
    component: () =>
                import('@/views/financialStatistics/receivedetail'),
    name: 'receivable',
    meta: {
      title: 'receivedetail'
    }
  },

  {
    path: 'paydetail',
    component: () =>
                import('@/views/financialStatistics/paydetail'),
    name: 'paydetail',
    meta: {
      title: 'paydetail'
    }
  }
  ]
}

export default componentsRouter
